package com.cjt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName sys_menu
 */
@TableName(value ="sys_menu")
@Data
public class Menu implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;



    /**
     * 
     */
    private String name;



    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
    private String perms;




    /**
     * 排序
     */
    private Integer ordernum;

    /**
     * 
     */
    private Date created;

    /**
     * 
     */
    private Date updated;

    /**
     * 
     */
    private Integer statu;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;



    @TableField(exist = false)
    private List<Menu> children = new ArrayList<>();
}